﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.SessionState;

namespace NJL.WebUsers.Handle
{
    /// <summary>
    /// ValidateCode 的摘要说明
    /// </summary>
    public class ValidateCode : IHttpHandler,IRequiresSessionState
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            if (context.Session["CheckCode"] != null)
            {
                context.Response.Write(context.Session["CheckCode"]);
            }
            else
            {
                context.Response.Write("null");
            }
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}